package testing;

import static org.junit.Assert.*;
import infrastructure.Utils;

import org.junit.Test;

import classification.ProteinPredictionResult;

import api.WekaConnector;

public class TestingWekaConnector {

	@Test
	public void test() throws Exception {
		String fileNameTraining = "data/set3_17.arff";
		String fileNameTesting = "data/set1_17.arff";			
		Object [] params = Utils.readParameters("config/predictorDaniel.config");
		WekaConnector connector = new WekaConnector(fileNameTraining, params, fileNameTesting);		
		ProteinPredictionResult result = connector.classify();
		assertNotNull(result);
		System.out.println(result.getSummary());		
	}

}
